package com.deyinet.bdcms.controller;

import com.deyinet.bdcms.core.vo.Page;
import com.deyinet.bdcms.entity.Deviceconfig;
import com.deyinet.bdcms.service.IDeviceConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Administrator on 2017/10/18 0018.
 */
@Controller
@RequestMapping(value = "/sysmanage/deviceConfig")
public class DeviceConfigController {
    @Autowired
    private IDeviceConfigService sysmoduleService;
    @RequestMapping(value = "/list")
    public void sysconfiglist(Model model, String sn) {
        model.addAttribute("sn",sn);

    }

    @RequestMapping(value = "/listdata")
    @ResponseBody
    public Page listdata(Page<Deviceconfig> page, Deviceconfig deviceconfig) {
        sysmoduleService.getPageByExampleEq(deviceconfig,page);
        return page;
    }
}
